package com.xc.stock.infrastructure.db.po;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.UpdateTimestamp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * AccountActionPO
 *
 * @author xlfd
 * @email xlfd@gmail.com
 * @created 2022/03/25
 */
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "account_action")
public class AccountActionPO {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	Integer id;

	Integer accountId;

	String accountNo;

	String accountType;

	String accountCurrency;

	/**
	 * 动作[结算/提现]
	 */
	String action;

	String type;

	String destId;
	String destName;
	String destPhone;
	
	Integer agentId;
	Integer agentMemberId;
	String agentMemberNo;

	String role;

	String outerUid;

	String outerNo;

	String logContent;

	/**
	 * 操作金额
	 */
	BigDecimal amount;

	BigDecimal refund;
	BigDecimal finish;

	Date limitWithdrawAt;
	Integer limitWithdrawStatus;
	
	String ext;

	Integer actionStatus;

	Integer status;

	@CreationTimestamp
	@Column(updatable = false)
	Date createAt;

	@UpdateTimestamp
	Date updateAt;
}
